package com.ford.trade.service.impl;

import com.ford.trade.entity.PeiLv;
import com.ford.trade.repository.PeilvRepository;
import com.ford.trade.service.PeilvService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: ford
 * @date: 2022/4/25 12:03
 */
@Service
public class PeilvServiceImpl implements PeilvService {
    @Resource
    private PeilvRepository peilvRepository;

    @Override
    public void save(PeiLv peiLv) {
        peilvRepository.save(peiLv);
    }

    @Override
    public List<PeiLv> findByIndexId(Long indexId) {

        return peilvRepository.findAllByIndexId(indexId);
    }
}
